package com.project.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.project.bean.DiseaseBean;

/**
 * 病害
 */
public interface DiseaseService extends IService<DiseaseBean> {

    /**
     * 分页显示病害
     * @param pageNO
     * @param pageSize
     * @return
     */
    IPage<DiseaseBean> findAllDisease(int pageNO,int pageSize);

    /**
     * 添加
     * @param diseaseBean
     */
    void addDisease(DiseaseBean diseaseBean);

    /**
     * id查询
     * @param diseaseId
     * @return
     */
    DiseaseBean findId(int diseaseId);

    /**
     * 病害名发病症状模糊查询
     * @param pageNO
     * @param pageSize
     * @param diseaseName
     * @param diseaseSymptom
     * @return
     */
    IPage<DiseaseBean> findName(int pageNO,int pageSize,String diseaseName,String diseaseSymptom);
}
